
<ul class="list-group dashboard-left-menu">
  <% if current_user.is_designer? %>
  <li class="list-group-item <%= 'active' if request.path =~ /dashboard\/designers$/ %>"><a href="<%= dashboard_designers_path %>">账户资料</a></li>
  <li class="list-group-item <%= 'active' if request.path =~ /dashboard\/designers\/design_cases/ %>"><a href="<%= dashboard_design_cases_path %>">设计案例</a></li>
  <% end %>
  <li class="list-group-item <%= 'active' if request.path =~ /dashboard\/orders/ %>"><a href="/dashboard/orders">我的订单</a></li>
  <li class="list-group-item <%= 'active' if request.path =~ /dashboard\/addresses/ %>"><a href="/dashboard/addresses">收货地址</a></li>
  <li class="list-group-item <%= 'active' if request.path =~ /dashboard\/invoices/ %>"><a href="/dashboard/invoices">我的发票</a></li>
</ul>
